<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>PowerVR SDK</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<table width="100%">
  <tr>
    <td width="33%">
      <p align="left">&nbsp;<a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
    </td>
    <td width="33%">
      <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
    </td>
    <td width="34%">
      <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
    </td>
  </tr>
</table>
<hr>
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>PVRESettings.h</h1><a href="PVRESettings_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/******************************************************************************</span>
00002 <span class="comment"></span>
00003 <span class="comment"> @File         PVRESettings.h</span>
00004 <span class="comment"></span>
00005 <span class="comment"> @Title        PVREngine main header file for OGLES2 API</span>
00006 <span class="comment"></span>
00007 <span class="comment"> @Version      </span>
00008 <span class="comment"></span>
00009 <span class="comment"> @Copyright    Copyright (C)  Imagination Technologies Limited.</span>
00010 <span class="comment"></span>
00011 <span class="comment"> @Platform     Independent/OGLES2</span>
00012 <span class="comment"></span>
00013 <span class="comment"> @Description  API independent settings for the PVREngine</span>
00014 <span class="comment"></span>
00015 <span class="comment">******************************************************************************/</span>
00016 
00017 <span class="preprocessor">#ifndef PVRESETTINGS_H</span>
00018 <span class="preprocessor"></span><span class="preprocessor">#define PVRESETTINGS_H</span>
00019 <span class="preprocessor"></span>
00020 <span class="preprocessor">#include "PVRTools.h"</span>
00021 
00022 <span class="keyword">namespace </span>pvrengine
00023 {
00024 
00028     <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="namespacepvrengine.html#a14">PVR_COLOUR_BUFFER</a>     = GL_COLOR_BUFFER_BIT;
00029     <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="namespacepvrengine.html#a15">PVR_DEPTH_BUFFER</a>      = GL_DEPTH_BUFFER_BIT;
00030 
<a name="l00032"></a><a class="code" href="namespacepvrengine.html#a14">00032</a>     <span class="keyword">enum</span> <a class="code" href="namespacepvrengine.html#a98">ECullFaceMode</a>
<a name="l00033"></a><a class="code" href="namespacepvrengine.html#a15">00033</a>     {
00034         <a class="code" href="namespacepvrengine.html#a98a16">PVR_NONE</a>                = GL_NONE,
00035         <a class="code" href="namespacepvrengine.html#a98a17">PVR_FRONT</a>               = GL_FRONT,
<a name="l00036"></a><a class="code" href="namespacepvrengine.html#a98">00036</a>         <a class="code" href="namespacepvrengine.html#a98a18">PVR_BACK</a>                = GL_BACK,
00037         <a class="code" href="namespacepvrengine.html#a98a19">PVR_FRONT_AND_BACK</a>  = GL_FRONT_AND_BACK
00038     };
00039     
00040         
00041     <span class="comment">/*!***************************************************************************</span>
00042 <span class="comment">    * @Class PVRESettings</span>
00043 <span class="comment">    * @Brief    API independent settings for the PVREngine.</span>
00044 <span class="comment">    * @Description  API independent settings for the PVREngine.</span>
00045 <span class="comment">    *****************************************************************************/</span>
00046     <span class="keyword">class </span>PVRESettings
00047     {
00048     <span class="keyword">public</span>:
00049         <span class="comment">/*!***************************************************************************</span>
00050 <span class="comment">        @Function           PVRESettings</span>
<a name="l00051"></a><a class="code" href="classpvrengine_1_1PVRESettings.html">00051</a> <span class="comment">        @Description        blank constructor.</span>
00052 <span class="comment">        *****************************************************************************/</span>
00053         <a class="code" href="classpvrengine_1_1PVRESettings.html#a0">PVRESettings</a>();
00054 
00055         <span class="comment">/*!***************************************************************************</span>
00056 <span class="comment">        @Function           ~PVRESettings</span>
00057 <span class="comment">        @Description        destructor.</span>
00058 <span class="comment">        *****************************************************************************/</span>
00059         <a class="code" href="classpvrengine_1_1PVRESettings.html#a1">~PVRESettings</a>();
00060 
00061         <span class="comment">/*!***************************************************************************</span>
00062 <span class="comment">        @Function           PVRESettings</span>
00063 <span class="comment">        @Description        API initialisation code.</span>
00064 <span class="comment">        *****************************************************************************/</span>
00065         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a2">Init</a>();
00066 
00067         <span class="comment">/*!***************************************************************************</span>
00068 <span class="comment">        @Function           setContext</span>
00069 <span class="comment">        @Input              pContext - context for this instance of the settings</span>
00070 <span class="comment">        @Description        sets the context for this instance</span>
00071 <span class="comment">        *****************************************************************************/</span>
00072         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a3">setContext</a>(SPVRTContext* pContext);
00073 
00074         <span class="comment">/*!***************************************************************************</span>
00075 <span class="comment">        @Function           setBackColour</span>
00076 <span class="comment">        @Input              cBackColour - clear colour</span>
00077 <span class="comment">        @Description        sets the clear colour</span>
00078 <span class="comment">        *****************************************************************************/</span>
00079         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a4">setBackColour</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> cBackColour);
00080 
00081         <span class="comment">/*!***************************************************************************</span>
00082 <span class="comment">        @Function           setBackColour</span>
00083 <span class="comment">        @Input              fRed - red component of colour</span>
00084 <span class="comment">        @Input              fGreen - red component of colour</span>
00085 <span class="comment">        @Input              fBlue - red component of colour</span>
00086 <span class="comment">        @Input              fAlpha - red component of colour</span>
00087 <span class="comment">        @Description        sets the clear colour</span>
00088 <span class="comment">        *****************************************************************************/</span>
00089         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a4">setBackColour</a>(<span class="keyword">const</span> VERTTYPE fRed, <span class="keyword">const</span> VERTTYPE fGreen, <span class="keyword">const</span> VERTTYPE fBlue, <span class="keyword">const</span> VERTTYPE fAlpha);
00090 
00091         <span class="comment">/*!***************************************************************************</span>
00092 <span class="comment">        @Function           setBackColour</span>
00093 <span class="comment">        @Input              v4BackColour - new clear colour</span>
00094 <span class="comment">        @Description        sets the clear colour</span>
00095 <span class="comment">        *****************************************************************************/</span>
00096         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a4">setBackColour</a>(<span class="keyword">const</span> PVRTVec4 v4BackColour);
00097 
00098         <span class="comment">/*!***************************************************************************</span>
00099 <span class="comment">        @Function           setBackColour</span>
00100 <span class="comment">        @Input              fRed - red component of colour</span>
00101 <span class="comment">        @Input              fGreen - red component of colour</span>
00102 <span class="comment">        @Input              fBlue - red component of colour</span>
00103 <span class="comment">        @Description        sets the clear colour</span>
00104 <span class="comment">        *****************************************************************************/</span>
00105         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a4">setBackColour</a>(<span class="keyword">const</span> VERTTYPE fRed, <span class="keyword">const</span> VERTTYPE fGreen, <span class="keyword">const</span> VERTTYPE fBlue);
00106 
00107         <span class="comment">/*!***************************************************************************</span>
00108 <span class="comment">        @Function           setBackColour</span>
00109 <span class="comment">        @Input              u32Red - red component of colour</span>
00110 <span class="comment">        @Input              u32Green - red component of colour</span>
00111 <span class="comment">        @Input              u32Blue - red component of colour</span>
00112 <span class="comment">        @Input              u32Alpha - red component of colour</span>
00113 <span class="comment">        @Description        sets the clear colour</span>
00114 <span class="comment">        *****************************************************************************/</span>
00115         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a4">setBackColour</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> u32Red,
00116             <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> u32Green,
00117             <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> u32Blue,
00118             <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> u32Alpha);
00119 
00120         <span class="comment">/*!***************************************************************************</span>
00121 <span class="comment">        @Function           setBackColour</span>
00122 <span class="comment">        @Input              u32Red - red component of colour</span>
00123 <span class="comment">        @Input              u32Green - red component of colour</span>
00124 <span class="comment">        @Input              u32Blue - red component of colour</span>
00125 <span class="comment">        @Description        sets the clear colour</span>
00126 <span class="comment">        *****************************************************************************/</span>
00127         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a4">setBackColour</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> u32Red,
00128             <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> u32Green,
00129             <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> u32Blue);
00130 
00131         <span class="comment">/*!***************************************************************************</span>
00132 <span class="comment">        @Function           setClearFlags</span>
00133 <span class="comment">        @Input              u32ClearFlags - see constants above</span>
00134 <span class="comment">        @Description        sets which buffers that the clear operation affects</span>
00135 <span class="comment">        *****************************************************************************/</span>
00136         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a10">setClearFlags</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> u32ClearFlags);
00137 
00138         <span class="comment">/*!***************************************************************************</span>
00139 <span class="comment">        @Function           getClearFlags</span>
00140 <span class="comment">        @Return             the current clear settnigs - see constants above</span>
00141 <span class="comment">        @Description        sets which buffers that the clear operation affects</span>
00142 <span class="comment">        *****************************************************************************/</span>
00143         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a11">getClearFlags</a>();
00144 
00145         <span class="comment">/*!***************************************************************************</span>
00146 <span class="comment">        @Function           setDepthTest</span>
00147 <span class="comment">        @Input              bDepth - true test, false don't</span>
00148 <span class="comment">        @Description        switches the z depth test on or off</span>
00149 <span class="comment">        *****************************************************************************/</span>
00150         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a12">setDepthTest</a>(<span class="keyword">const</span> <span class="keywordtype">bool</span> bDepth);
00151 
00152         <span class="comment">/*!***************************************************************************</span>
00153 <span class="comment">        @Function           setDepthWrite</span>
00154 <span class="comment">        @Input              bDepthWrite - true write, false don't</span>
00155 <span class="comment">        @Description        sets whether rendering writes to the z depth buffer</span>
00156 <span class="comment">        *****************************************************************************/</span>
00157         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a13">setDepthWrite</a>(<span class="keyword">const</span> <span class="keywordtype">bool</span> bDepthWrite);
00158 
00159         <span class="comment">/*!***************************************************************************</span>
00160 <span class="comment">         @Function          setBlend</span>
00161 <span class="comment">         @Input             bBlend - true blend, false don't</span>
00162 <span class="comment">         @Description       sets whether alpha blending is enabled according to the</span>
00163 <span class="comment">         current blend mode</span>
00164 <span class="comment">         *****************************************************************************/</span>
00165         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a14">setBlend</a>(<span class="keyword">const</span> <span class="keywordtype">bool</span> bBlend);
00166         
00167         <span class="comment">/*!***************************************************************************</span>
00168 <span class="comment">         @Function          setBlendFunc</span>
00169 <span class="comment">         @Input             eSource - Source value</span>
00170 <span class="comment">         @Input             eDest - Destination value</span>
00171 <span class="comment">         @Description       sets the blend function - values are the same for alpha and RGB</span>
00172 <span class="comment">         *****************************************************************************/</span>
00173         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a15">setBlendFunc</a>(<span class="keyword">const</span> EPODBlendFunc eSource,
00174             <span class="keyword">const</span> EPODBlendFunc eDest);
00175         
00176         <span class="comment">/*!***************************************************************************</span>
00177 <span class="comment">         @Function          setBlendFunc</span>
00178 <span class="comment">         @Input             eSourceRGB - RGB Source value</span>
00179 <span class="comment">         @Input             eSourceA - A Source value</span>
00180 <span class="comment">         @Input             eDestRGB - RGB Destination value</span>
00181 <span class="comment">         @Input             eDestA - A Destination value</span>
00182 <span class="comment">         @Description       sets the blend function</span>
00183 <span class="comment">         *****************************************************************************/</span>
00184         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a16">setBlendFuncSeparate</a>(<span class="keyword">const</span> EPODBlendFunc eSourceRGB,
00185         <span class="keyword">const</span> EPODBlendFunc eDestRGB,
00186         <span class="keyword">const</span> EPODBlendFunc eSourceA,
00187         <span class="keyword">const</span> EPODBlendFunc eDestA);
00188 
00189         <span class="comment">/*!***************************************************************************</span>
00190 <span class="comment">         @Function          setBlendOperation</span>
00191 <span class="comment">         @Input             eOp - The blend operation value</span>
00192 <span class="comment">         @Description       sets the blend function - values are the same for alpha and RGB</span>
00193 <span class="comment">         *****************************************************************************/</span>
00194         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a17">setBlendOperation</a>(<span class="keyword">const</span> EPODBlendOp eOp);
00195         
00196         <span class="comment">/*!***************************************************************************</span>
00197 <span class="comment">         @Function          setBlendOperationSeparate</span>
00198 <span class="comment">         @Input             eOpRGB - RGB Source value</span>
00199 <span class="comment">         @Input             eOpA - A Source value</span>
00200 <span class="comment">         @Description       sets the blend function</span>
00201 <span class="comment">         *****************************************************************************/</span>
00202         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a18">setBlendOperationSeparate</a>(<span class="keyword">const</span> EPODBlendOp eOpRGB,
00203             <span class="keyword">const</span> EPODBlendOp eOpA);
00204 
00205         <span class="comment">/*!***************************************************************************</span>
00206 <span class="comment">        @Function           setBlendColour</span>
00207 <span class="comment">        @Input              v4BlendColour - blend colour to be set</span>
00208 <span class="comment">        @Description        sets the blend colour to be used</span>
00209 <span class="comment">        *****************************************************************************/</span>
00210         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a19">setBlendColour</a>(<span class="keyword">const</span> PVRTVec4 v4BlendColour);
00211 
00212         <span class="comment">/*!***************************************************************************</span>
00213 <span class="comment">        @Function           setCullFce</span>
00214 <span class="comment">        @Input              bCullFace - true cull, false don't</span>
00215 <span class="comment">        @Description        sets whether culling is enabled according to the current</span>
00216 <span class="comment">        cull mode</span>
00217 <span class="comment">        *****************************************************************************/</span>
00218         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a20">setCullFace</a>(<span class="keyword">const</span> <span class="keywordtype">bool</span> bCullFace);
00219 
00220         <span class="comment">/*!***************************************************************************</span>
00221 <span class="comment">        @Function           setCullMode</span>
00222 <span class="comment">        @Input              eMode - the cull mode</span>
00223 <span class="comment">        @Description        sets the cull mode</span>
00224 <span class="comment">        *****************************************************************************/</span>
00225         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a21">setCullMode</a>(<span class="keyword">const</span> ECullFaceMode eMode);
00226 
00227         <span class="comment">/*!***************************************************************************</span>
00228 <span class="comment">        @Function           Clear</span>
00229 <span class="comment">        @Description        Performs a clear</span>
00230 <span class="comment">        *****************************************************************************/</span>
00231         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a22">Clear</a>();
00232 
00233         <span class="comment">/*!***************************************************************************</span>
00234 <span class="comment">        @Function           setClearFlags</span>
00235 <span class="comment">        @Input              sPrint3d - reference to the Print3D class for this context</span>
00236 <span class="comment">        @Input              u32Width - width of viewport</span>
00237 <span class="comment">        @Input              u32Height - height of viewport</span>
00238 <span class="comment">        @Input              bRotate - rotate for portrait flag</span>
00239 <span class="comment">        @Description        Mandatory</span>
00240 <span class="comment">        *****************************************************************************/</span>
00241         <span class="keywordtype">bool</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a23">InitPrint3D</a>(CPVRTPrint3D&amp; sPrint3d,
00242             <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> u32Width,
00243             <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> u32Height,
00244             <span class="keyword">const</span> <span class="keywordtype">bool</span> bRotate);
00245 
00246         <span class="comment">/*!***************************************************************************</span>
00247 <span class="comment">        @Function           getAPIName</span>
00248 <span class="comment">        @Return             human readable string of the current API</span>
00249 <span class="comment">        @Description        Returns a string containing the name of the current API:</span>
00250 <span class="comment">        e.g. "OpenGL"</span>
00251 <span class="comment">        *****************************************************************************/</span>
00252         CPVRTString <a class="code" href="classpvrengine_1_1PVRESettings.html#a24">getAPIName</a>();
00253 
00254 
00255         
00256         <span class="keyword">enum</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#w8">EStateFlag</a>
00257         {
00258             <a class="code" href="classpvrengine_1_1PVRESettings.html#w8w0">eStateBackColour</a>    = 1,
00259             <a class="code" href="classpvrengine_1_1PVRESettings.html#w8w1">eStateDepthTest</a>     = 2,
00260             <a class="code" href="classpvrengine_1_1PVRESettings.html#w8w2">eStateBlendColour</a>   = 4,
00261             <a class="code" href="classpvrengine_1_1PVRESettings.html#w8w3">eStateBlendOp</a>       = 8,
00262             <a class="code" href="classpvrengine_1_1PVRESettings.html#w8w4">eStateDepthWrite</a>    = 0x10,
00263             <a class="code" href="classpvrengine_1_1PVRESettings.html#w8w5">eStateBlendFunction</a> = 0x20,
00264             <a class="code" href="classpvrengine_1_1PVRESettings.html#w8w6">eStateCullFace</a>      = 0x40,
00265             <a class="code" href="classpvrengine_1_1PVRESettings.html#w8w7">eStateCullFaceMode</a>  = 0x80,
00266 
00267         };
00268 
00269         <span class="comment">/*!***************************************************************************</span>
00270 <span class="comment">        @Function           setDirty</span>
00271 <span class="comment">        @Input              eFlag - setting to mark dirty</span>
00272 <span class="comment">        @Description        Marking dirty means that calls to this class will</span>
00273 <span class="comment">        *****************************************************************************/</span>  
00274         <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#a25">setDirty</a>(<span class="keyword">const</span> EStateFlag eFlag)
00275         {
00276             m_u32DirtyFlags = m_u32DirtyFlags|eFlag;
00277         }
00278 
00279     <span class="keyword">protected</span>:
00280         SPVRTContext        *m_pContext;        
00282         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>        m_u32ClearFlags;    
00283         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>        m_u32DirtyFlags;    
00285         PVRTVec4        m_v4BackColour;         
<a name="l00286"></a><a class="code" href="classpvrengine_1_1PVRESettings.html#w8">00286</a>         PVRTVec4        <a class="code" href="classpvrengine_1_1PVRESettings.html#p4">m_v4BlendColour</a>;        
00287         EPODBlendOp     <a class="code" href="classpvrengine_1_1PVRESettings.html#p5">m_eBlendOperationRGB</a>,<a class="code" href="classpvrengine_1_1PVRESettings.html#p6">m_eBlendOperationA</a>;        
00288         EPODBlendFunc   <a class="code" href="classpvrengine_1_1PVRESettings.html#p7">m_eBlendSourceRGB</a>,<a class="code" href="classpvrengine_1_1PVRESettings.html#p8">m_eBlendDestRGB</a>,<a class="code" href="classpvrengine_1_1PVRESettings.html#p9">m_eBlendSourceA</a>,<a class="code" href="classpvrengine_1_1PVRESettings.html#p10">m_eBlendDestA</a>;            
00289         <span class="keywordtype">bool</span>            <a class="code" href="classpvrengine_1_1PVRESettings.html#p11">m_bDepthTest</a>;           
00290         <span class="keywordtype">bool</span>            <a class="code" href="classpvrengine_1_1PVRESettings.html#p12">m_bDepthWrite</a>;          
00291         <span class="keywordtype">bool</span>            <a class="code" href="classpvrengine_1_1PVRESettings.html#p13">m_bCullFace</a>;            
00292         <a class="code" href="namespacepvrengine.html#a98">ECullFaceMode</a>   <a class="code" href="classpvrengine_1_1PVRESettings.html#p14">m_eCullFaceMode</a>;        
00294         <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#b0">isDirty</a>(<span class="keyword">const</span> EStateFlag eFlag)
00295         {
00296             <span class="keywordflow">return</span> (<a class="code" href="classpvrengine_1_1PVRESettings.html#p2">m_u32DirtyFlags</a>&amp;eFlag)!=0;
00297         }
00298 
00299         <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#b1">isClean</a>(<span class="keyword">const</span> EStateFlag eFlag)
00300         {
00301             <span class="keywordflow">return</span> (m_u32DirtyFlags&amp;eFlag)==0;
00302         }
00303 
00304         <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1PVRESettings.html#b2">setClean</a>(<span class="keyword">const</span> EStateFlag eFlag)
<a name="l00305"></a><a class="code" href="classpvrengine_1_1PVRESettings.html#a25">00305</a>         {
00306             <a class="code" href="classpvrengine_1_1PVRESettings.html#p2">m_u32DirtyFlags</a>  = <a class="code" href="classpvrengine_1_1PVRESettings.html#p2">m_u32DirtyFlags</a>&amp;(!eFlag);
00307         }
00308 
00309 
00310     };
<a name="l00311"></a><a class="code" href="classpvrengine_1_1PVRESettings.html#p0">00311</a> 
00312 }
<a name="l00313"></a><a class="code" href="classpvrengine_1_1PVRESettings.html#p1">00313</a> <span class="preprocessor">#endif // PVRESETTINGS_H</span>
<a name="l00314"></a><a class="code" href="classpvrengine_1_1PVRESettings.html#p2">00314</a> <span class="preprocessor"></span>
00315 <span class="comment">/******************************************************************************</span>
<a name="l00316"></a><a class="code" href="classpvrengine_1_1PVRESettings.html#p3">00316</a> <span class="comment">End of file (PVRESettings.h)</span>
<a name="l00317"></a><a class="code" href="classpvrengine_1_1PVRESettings.html#p4">00317</a> <span class="comment">******************************************************************************/</span>
<a name="l00318"></a><a class="code" href="classpvrengine_1_1PVRESettings.html#p5">00318</a> 
</pre></div><br>
<br>
<P align=left><FONT size=2><STRONG><A 
   href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> � 
   1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
<hr>
<address style="align: left;"><small><FONT color=f0f>
Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
</body>
</html>
